﻿Imports System.ComponentModel

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class ucStudentDetails
    Inherits UcBaseEditControl
    Implements IUcEditControl

#Region "Designer"
    'UserControl overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()
        
        ' Add any initialization after the InitializeComponent() call.
        
    End Sub
    Friend WithEvents panelClasses As System.Windows.Forms.SplitContainer
    Friend WithEvents UcPeriodClassList As IIC.ucPeriodClassList
    Friend WithEvents UcStudentMembershipDetails As IIC.ucStudentMembershipDetails
    Friend WithEvents lblAddStudent As System.Windows.Forms.Label

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.FirstNamelbl = New System.Windows.Forms.Label()
        Me.FirstName = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.LastNamelbl = New System.Windows.Forms.Label()
        Me.LastName = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.DateOfBirthlbl = New System.Windows.Forms.Label()
        Me.DateOfBirth = New org.codegen.win.controls.CGDateTextBox(Me.components)
        Me.Companylbl = New System.Windows.Forms.Label()
        Me.Company = New org.codegen.win.controls.CGComboBox(Me.components)
        Me.IdNumberlbl = New System.Windows.Forms.Label()
        Me.IdNumber = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.OfficePhonelbl = New System.Windows.Forms.Label()
        Me.OfficePhone = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.MobilePhonelbl = New System.Windows.Forms.Label()
        Me.MobilePhone = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Faxlbl = New System.Windows.Forms.Label()
        Me.Fax = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Emaillbl = New System.Windows.Forms.Label()
        Me.Email = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.InformCompanyFlaglbl = New System.Windows.Forms.Label()
        Me.InformCompanyFlag = New org.codegen.win.controls.CGCheckBox(Me.components)
        Me.Address1lbl = New System.Windows.Forms.Label()
        Me.Address1 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address2lbl = New System.Windows.Forms.Label()
        Me.Address2 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address3lbl = New System.Windows.Forms.Label()
        Me.Address3 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address4lbl = New System.Windows.Forms.Label()
        Me.Address4 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.panelClasses = New System.Windows.Forms.SplitContainer()
        Me.lblAddStudent = New System.Windows.Forms.Label()
        Me.UcStudentMembershipDetails = New IIC.ucStudentMembershipDetails()
        Me.UcPeriodClassList = New IIC.ucPeriodClassList()
        CType(Me.ErrProvider, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.panelClasses, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.panelClasses.Panel1.SuspendLayout()
        Me.panelClasses.Panel2.SuspendLayout()
        Me.panelClasses.SuspendLayout()
        Me.SuspendLayout()
        '
        'FirstNamelbl
        '
        Me.FirstNamelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FirstNamelbl.Location = New System.Drawing.Point(5, 15)
        Me.FirstNamelbl.Name = "FirstNamelbl"
        Me.FirstNamelbl.Size = New System.Drawing.Size(120, 20)
        Me.FirstNamelbl.TabIndex = 0
        Me.FirstNamelbl.Text = "First Name"
        Me.FirstNamelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'FirstName
        '
        Me.FirstName.AssociatedLabel = Me.FirstNamelbl
        Me.FirstName.BackColor = System.Drawing.Color.LightYellow
        Me.FirstName.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.FirstName.ErrProvider = Nothing
        Me.FirstName.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FirstName.FormatPattern = Nothing
        Me.FirstName.isMandatory = True
        Me.FirstName.Location = New System.Drawing.Point(135, 15)
        Me.FirstName.MaxLength = 255
        Me.FirstName.MaxValue = Nothing
        Me.FirstName.MinValue = Nothing
        Me.FirstName.Name = "FirstName"
        '
        Me.FirstName.Size = New System.Drawing.Size(200, 21)
        Me.FirstName.TabIndex = 1
        '
        'LastNamelbl
        '
        Me.LastNamelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.LastNamelbl.Location = New System.Drawing.Point(5, 40)
        Me.LastNamelbl.Name = "LastNamelbl"
        Me.LastNamelbl.Size = New System.Drawing.Size(120, 20)
        Me.LastNamelbl.TabIndex = 2
        Me.LastNamelbl.Text = "Last Name"
        Me.LastNamelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'LastName
        '
        Me.LastName.AssociatedLabel = Me.LastNamelbl
        Me.LastName.BackColor = System.Drawing.Color.LightYellow
        Me.LastName.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.LastName.ErrProvider = Nothing
        Me.LastName.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.LastName.FormatPattern = Nothing
        Me.LastName.isMandatory = True
        Me.LastName.Location = New System.Drawing.Point(135, 40)
        Me.LastName.MaxLength = 255
        Me.LastName.MaxValue = Nothing
        Me.LastName.MinValue = Nothing
        Me.LastName.Name = "LastName"
        '
        Me.LastName.Size = New System.Drawing.Size(200, 21)
        Me.LastName.TabIndex = 3
        '
        'DateOfBirthlbl
        '
        Me.DateOfBirthlbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DateOfBirthlbl.Location = New System.Drawing.Point(5, 342)
        Me.DateOfBirthlbl.Name = "DateOfBirthlbl"
        Me.DateOfBirthlbl.Size = New System.Drawing.Size(120, 20)
        Me.DateOfBirthlbl.TabIndex = 26
        Me.DateOfBirthlbl.Text = "Date Of Birth"
        Me.DateOfBirthlbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'DateOfBirth
        '
        Me.DateOfBirth.AssociatedLabel = Me.DateOfBirthlbl
        Me.DateOfBirth.BackColor = System.Drawing.Color.Transparent
        Me.DateOfBirth.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.DateOfBirth.ErrProvider = Nothing
        Me.DateOfBirth.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DateOfBirth.isMandatory = False
        Me.DateOfBirth.Location = New System.Drawing.Point(135, 342)
        Me.DateOfBirth.MaxLength = 0
        Me.DateOfBirth.MaxValue = Nothing
        Me.DateOfBirth.MinValue = Nothing
        Me.DateOfBirth.Name = "DateOfBirth"
        '
        Me.DateOfBirth.Size = New System.Drawing.Size(200, 21)
        Me.DateOfBirth.TabIndex = 27
        '
        'Companylbl
        '
        Me.Companylbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Companylbl.Location = New System.Drawing.Point(5, 90)
        Me.Companylbl.Name = "Companylbl"
        Me.Companylbl.Size = New System.Drawing.Size(120, 20)
        Me.Companylbl.TabIndex = 6
        Me.Companylbl.Text = "Company"
        Me.Companylbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Company
        '
        Me.Company.AssociatedLabel = Me.Companylbl
        Me.Company.BackColor = System.Drawing.Color.Transparent
        Me.Company.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.Company.ErrProvider = Nothing
        Me.Company.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Company.isMandatory = False
        Me.Company.Location = New System.Drawing.Point(135, 90)
        Me.Company.MaxLength = 255
        Me.Company.MaxValue = Nothing
        Me.Company.MinValue = Nothing
        Me.Company.Name = "Company"

        Me.Company.Size = New System.Drawing.Size(200, 21)
        Me.Company.TabIndex = 7
        '
        'IdNumberlbl
        '
        Me.IdNumberlbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.IdNumberlbl.Location = New System.Drawing.Point(5, 65)
        Me.IdNumberlbl.Name = "IdNumberlbl"
        Me.IdNumberlbl.Size = New System.Drawing.Size(120, 20)
        Me.IdNumberlbl.TabIndex = 4
        Me.IdNumberlbl.Text = "Id Number"
        Me.IdNumberlbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'IdNumber
        '
        Me.IdNumber.AssociatedLabel = Me.IdNumberlbl
        Me.IdNumber.BackColor = System.Drawing.Color.LightYellow
        Me.IdNumber.ErrProvider = Nothing
        Me.IdNumber.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.IdNumber.FormatPattern = Nothing
        Me.IdNumber.isMandatory = True
        Me.IdNumber.Location = New System.Drawing.Point(135, 65)
        Me.IdNumber.MaxLength = 255
        Me.IdNumber.MaxValue = Nothing
        Me.IdNumber.MinValue = Nothing
        Me.IdNumber.Name = "IdNumber"
        '
        Me.IdNumber.Size = New System.Drawing.Size(200, 21)
        Me.IdNumber.TabIndex = 5
        '
        'OfficePhonelbl
        '
        Me.OfficePhonelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.OfficePhonelbl.Location = New System.Drawing.Point(5, 113)
        Me.OfficePhonelbl.Name = "OfficePhonelbl"
        Me.OfficePhonelbl.Size = New System.Drawing.Size(120, 20)
        Me.OfficePhonelbl.TabIndex = 8
        Me.OfficePhonelbl.Text = "Office Phone"
        Me.OfficePhonelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'OfficePhone
        '
        Me.OfficePhone.AssociatedLabel = Me.OfficePhonelbl
        Me.OfficePhone.BackColor = System.Drawing.Color.Transparent
        Me.OfficePhone.ErrProvider = Nothing
        Me.OfficePhone.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.OfficePhone.FormatPattern = Nothing
        Me.OfficePhone.isMandatory = False
        Me.OfficePhone.Location = New System.Drawing.Point(135, 115)
        Me.OfficePhone.MaxLength = 255
        Me.OfficePhone.MaxValue = Nothing
        Me.OfficePhone.MinValue = Nothing
        Me.OfficePhone.Name = "OfficePhone"
        '
        Me.OfficePhone.Size = New System.Drawing.Size(200, 21)
        Me.OfficePhone.TabIndex = 9
        '
        'MobilePhonelbl
        '
        Me.MobilePhonelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.MobilePhonelbl.Location = New System.Drawing.Point(5, 139)
        Me.MobilePhonelbl.Name = "MobilePhonelbl"
        Me.MobilePhonelbl.Size = New System.Drawing.Size(120, 20)
        Me.MobilePhonelbl.TabIndex = 10
        Me.MobilePhonelbl.Text = "MobilePhone"
        Me.MobilePhonelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'MobilePhone
        '
        Me.MobilePhone.AssociatedLabel = Me.MobilePhonelbl
        Me.MobilePhone.BackColor = System.Drawing.Color.Transparent
        Me.MobilePhone.ErrProvider = Nothing
        Me.MobilePhone.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.MobilePhone.FormatPattern = Nothing
        Me.MobilePhone.isMandatory = False
        Me.MobilePhone.Location = New System.Drawing.Point(135, 141)
        Me.MobilePhone.MaxLength = 255
        Me.MobilePhone.MaxValue = Nothing
        Me.MobilePhone.MinValue = Nothing
        Me.MobilePhone.Name = "MobilePhone"
        '
        Me.MobilePhone.Size = New System.Drawing.Size(200, 21)
        Me.MobilePhone.TabIndex = 11
        '
        'Faxlbl
        '
        Me.Faxlbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Faxlbl.Location = New System.Drawing.Point(5, 166)
        Me.Faxlbl.Name = "Faxlbl"
        Me.Faxlbl.Size = New System.Drawing.Size(120, 20)
        Me.Faxlbl.TabIndex = 12
        Me.Faxlbl.Text = "Fax"
        Me.Faxlbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Fax
        '
        Me.Fax.AssociatedLabel = Me.Faxlbl
        Me.Fax.BackColor = System.Drawing.Color.Transparent
        Me.Fax.ErrProvider = Nothing
        Me.Fax.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Fax.FormatPattern = Nothing
        Me.Fax.isMandatory = False
        Me.Fax.Location = New System.Drawing.Point(135, 167)
        Me.Fax.MaxLength = 255
        Me.Fax.MaxValue = Nothing
        Me.Fax.MinValue = Nothing
        Me.Fax.Name = "Fax"
        '
        Me.Fax.Size = New System.Drawing.Size(200, 21)
        Me.Fax.TabIndex = 13
        '
        'Emaillbl
        '
        Me.Emaillbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Emaillbl.Location = New System.Drawing.Point(5, 193)
        Me.Emaillbl.Name = "Emaillbl"
        Me.Emaillbl.Size = New System.Drawing.Size(120, 20)
        Me.Emaillbl.TabIndex = 14
        Me.Emaillbl.Text = "Email"
        Me.Emaillbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Email
        '
        Me.Email.AssociatedLabel = Me.Emaillbl
        Me.Email.BackColor = System.Drawing.Color.Transparent
        Me.Email.ErrProvider = Nothing
        Me.Email.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Email.FormatPattern = Nothing
        Me.Email.isMandatory = False
        Me.Email.Location = New System.Drawing.Point(135, 193)
        Me.Email.MaxLength = 255
        Me.Email.MaxValue = Nothing
        Me.Email.MinValue = Nothing
        Me.Email.Name = "Email"
        '
        Me.Email.Size = New System.Drawing.Size(200, 21)
        Me.Email.TabIndex = 15
        '
        'InformCompanyFlaglbl
        '
        Me.InformCompanyFlaglbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.InformCompanyFlaglbl.Location = New System.Drawing.Point(5, 220)
        Me.InformCompanyFlaglbl.Name = "InformCompanyFlaglbl"
        Me.InformCompanyFlaglbl.Size = New System.Drawing.Size(120, 20)
        Me.InformCompanyFlaglbl.TabIndex = 16
        Me.InformCompanyFlaglbl.Text = "Inform Company"
        Me.InformCompanyFlaglbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'InformCompanyFlag
        '
        Me.InformCompanyFlag.AssociatedLabel = Me.InformCompanyFlaglbl
        Me.InformCompanyFlag.BackColor = System.Drawing.Color.Transparent
        Me.InformCompanyFlag.ErrProvider = Nothing
        Me.InformCompanyFlag.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.InformCompanyFlag.intValue = 0
        Me.InformCompanyFlag.isMandatory = False
        Me.InformCompanyFlag.Location = New System.Drawing.Point(135, 220)
        Me.InformCompanyFlag.MaxValue = Nothing
        Me.InformCompanyFlag.MinValue = Nothing
        Me.InformCompanyFlag.Name = "InformCompanyFlag"
        Me.InformCompanyFlag.ReadOnly = False

        Me.InformCompanyFlag.Size = New System.Drawing.Size(17, 20)
        Me.InformCompanyFlag.TabIndex = 17
        Me.InformCompanyFlag.Text = "false"
        Me.InformCompanyFlag.UseVisualStyleBackColor = False
        Me.InformCompanyFlag.value = False
        '
        'Address1lbl
        '
        Me.Address1lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address1lbl.Location = New System.Drawing.Point(5, 241)
        Me.Address1lbl.Name = "Address1lbl"
        Me.Address1lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address1lbl.TabIndex = 18
        Me.Address1lbl.Text = "Address1"
        Me.Address1lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address1
        '
        Me.Address1.AssociatedLabel = Me.Address1lbl
        Me.Address1.BackColor = System.Drawing.Color.Transparent
        Me.Address1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.Address1.ErrProvider = Nothing
        Me.Address1.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address1.FormatPattern = Nothing
        Me.Address1.isMandatory = False
        Me.Address1.Location = New System.Drawing.Point(135, 241)
        Me.Address1.MaxLength = 255
        Me.Address1.MaxValue = Nothing
        Me.Address1.MinValue = Nothing
        Me.Address1.Name = "Address1"
        '
        Me.Address1.Size = New System.Drawing.Size(200, 21)
        Me.Address1.TabIndex = 19
        '
        'Address2lbl
        '
        Me.Address2lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address2lbl.Location = New System.Drawing.Point(5, 266)
        Me.Address2lbl.Name = "Address2lbl"
        Me.Address2lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address2lbl.TabIndex = 20
        Me.Address2lbl.Text = "Address2"
        Me.Address2lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address2
        '
        Me.Address2.AssociatedLabel = Me.Address2lbl
        Me.Address2.BackColor = System.Drawing.Color.Transparent
        Me.Address2.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.Address2.ErrProvider = Nothing
        Me.Address2.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address2.FormatPattern = Nothing
        Me.Address2.isMandatory = False
        Me.Address2.Location = New System.Drawing.Point(135, 266)
        Me.Address2.MaxLength = 255
        Me.Address2.MaxValue = Nothing
        Me.Address2.MinValue = Nothing
        Me.Address2.Name = "Address2"
        '
        Me.Address2.Size = New System.Drawing.Size(200, 21)
        Me.Address2.TabIndex = 21
        '
        'Address3lbl
        '
        Me.Address3lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address3lbl.Location = New System.Drawing.Point(5, 291)
        Me.Address3lbl.Name = "Address3lbl"
        Me.Address3lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address3lbl.TabIndex = 22
        Me.Address3lbl.Text = "Address3"
        Me.Address3lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address3
        '
        Me.Address3.AssociatedLabel = Me.Address3lbl
        Me.Address3.BackColor = System.Drawing.Color.Transparent
        Me.Address3.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.Address3.ErrProvider = Nothing
        Me.Address3.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address3.FormatPattern = Nothing
        Me.Address3.isMandatory = False
        Me.Address3.Location = New System.Drawing.Point(135, 291)
        Me.Address3.MaxLength = 255
        Me.Address3.MaxValue = Nothing
        Me.Address3.MinValue = Nothing
        Me.Address3.Name = "Address3"
        '
        Me.Address3.Size = New System.Drawing.Size(200, 21)
        Me.Address3.TabIndex = 23
        '
        'Address4lbl
        '
        Me.Address4lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address4lbl.Location = New System.Drawing.Point(5, 316)
        Me.Address4lbl.Name = "Address4lbl"
        Me.Address4lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address4lbl.TabIndex = 24
        Me.Address4lbl.Text = "Address4"
        Me.Address4lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address4
        '
        Me.Address4.AssociatedLabel = Me.Address4lbl
        Me.Address4.BackColor = System.Drawing.Color.Transparent
        Me.Address4.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.Address4.ErrProvider = Nothing
        Me.Address4.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address4.FormatPattern = Nothing
        Me.Address4.isMandatory = False
        Me.Address4.Location = New System.Drawing.Point(135, 316)
        Me.Address4.MaxLength = 255
        Me.Address4.MaxValue = Nothing
        Me.Address4.MinValue = Nothing
        Me.Address4.Name = "Address4"
        '
        Me.Address4.Size = New System.Drawing.Size(200, 21)
        Me.Address4.TabIndex = 25
        '
        'panelClasses
        '
        Me.panelClasses.IsSplitterFixed = True
        Me.panelClasses.Location = New System.Drawing.Point(354, 220)
        Me.panelClasses.Margin = New System.Windows.Forms.Padding(0)
        Me.panelClasses.Name = "panelClasses"
        Me.panelClasses.Orientation = System.Windows.Forms.Orientation.Horizontal
        '
        'panelClasses.Panel1
        '
        Me.panelClasses.Panel1.Controls.Add(Me.lblAddStudent)
        Me.panelClasses.Panel1MinSize = 15
        '
        'panelClasses.Panel2
        '
        Me.panelClasses.Panel2.Controls.Add(Me.UcPeriodClassList)
        Me.panelClasses.Panel2MinSize = 15
        Me.panelClasses.Size = New System.Drawing.Size(486, 145)
        Me.panelClasses.SplitterDistance = 25
        Me.panelClasses.SplitterWidth = 1
        Me.panelClasses.TabIndex = 15
        '
        'lblAddStudent
        '
        Me.lblAddStudent.Dock = System.Windows.Forms.DockStyle.Fill
        Me.lblAddStudent.Location = New System.Drawing.Point(0, 0)
        Me.lblAddStudent.Name = "lblAddStudent"
        Me.lblAddStudent.Size = New System.Drawing.Size(486, 25)
        Me.lblAddStudent.TabIndex = 0
        Me.lblAddStudent.Text = "Select Classes below to add the Student"
        '
        'UcStudentMembershipDetails
        '
        Me.UcStudentMembershipDetails.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange
        Me.UcStudentMembershipDetails.isInitialized = False
        Me.UcStudentMembershipDetails.Location = New System.Drawing.Point(354, 15)
        Me.UcStudentMembershipDetails.ModelObject = Nothing
        Me.UcStudentMembershipDetails.Name = "UcStudentMembershipDetails"
        Me.UcStudentMembershipDetails.Size = New System.Drawing.Size(475, 198)
        Me.UcStudentMembershipDetails.TabIndex = 16
        '
        'UcPeriodClassList
        '
        Me.UcPeriodClassList.Dock = System.Windows.Forms.DockStyle.Fill
        Me.UcPeriodClassList.FromEmployeeScreen = False
        Me.UcPeriodClassList.Location = New System.Drawing.Point(0, 0)
        Me.UcPeriodClassList.Name = "UcPeriodClassList"
        'Me.UcPeriodClassList.Size = New System.Drawing.Size(486, 119)
        Me.UcPeriodClassList.TabIndex = 0
        '
        'ucStudentDetails
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange
        Me.Controls.Add(Me.UcStudentMembershipDetails)
        Me.Controls.Add(Me.FirstNamelbl)
        Me.Controls.Add(Me.FirstName)
        Me.Controls.Add(Me.LastNamelbl)
        Me.Controls.Add(Me.LastName)
        Me.Controls.Add(Me.DateOfBirthlbl)
        Me.Controls.Add(Me.DateOfBirth)
        Me.Controls.Add(Me.Companylbl)
        Me.Controls.Add(Me.Company)
        Me.Controls.Add(Me.IdNumberlbl)
        Me.Controls.Add(Me.IdNumber)
        Me.Controls.Add(Me.OfficePhonelbl)
        Me.Controls.Add(Me.OfficePhone)
        Me.Controls.Add(Me.MobilePhonelbl)
        Me.Controls.Add(Me.MobilePhone)
        Me.Controls.Add(Me.Faxlbl)
        Me.Controls.Add(Me.Fax)
        Me.Controls.Add(Me.Emaillbl)
        Me.Controls.Add(Me.Email)
        Me.Controls.Add(Me.InformCompanyFlaglbl)
        Me.Controls.Add(Me.InformCompanyFlag)
        Me.Controls.Add(Me.Address1lbl)
        Me.Controls.Add(Me.Address1)
        Me.Controls.Add(Me.Address2lbl)
        Me.Controls.Add(Me.Address2)
        Me.Controls.Add(Me.Address3lbl)
        Me.Controls.Add(Me.Address3)
        Me.Controls.Add(Me.Address4lbl)
        Me.Controls.Add(Me.Address4)
        Me.Controls.Add(Me.panelClasses)
        Me.Name = "ucStudentDetails"
        Me.Size = New System.Drawing.Size(850, 372)
        CType(Me.ErrProvider, System.ComponentModel.ISupportInitialize).EndInit()
        Me.panelClasses.Panel1.ResumeLayout(False)
        Me.panelClasses.Panel2.ResumeLayout(False)
        CType(Me.panelClasses, System.ComponentModel.ISupportInitialize).EndInit()
        Me.panelClasses.ResumeLayout(False)
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

    

    Friend WithEvents FirstNamelbl As System.Windows.Forms.Label
    Friend WithEvents FirstName As CGTextBox
    Friend WithEvents LastNamelbl As System.Windows.Forms.Label
    Friend WithEvents LastName As CGTextBox
    Friend WithEvents DateOfBirthlbl As System.Windows.Forms.Label
    Friend WithEvents DateOfBirth As CGDateTextBox
    Friend WithEvents Companylbl As System.Windows.Forms.Label
    Friend WithEvents Company As CGComboBox
    Friend WithEvents IdNumberlbl As System.Windows.Forms.Label
    Friend WithEvents IdNumber As CGTextBox
    Friend WithEvents OfficePhonelbl As System.Windows.Forms.Label
    Friend WithEvents OfficePhone As CGTextBox
    Friend WithEvents MobilePhonelbl As System.Windows.Forms.Label
    Friend WithEvents MobilePhone As CGTextBox
    Friend WithEvents Faxlbl As System.Windows.Forms.Label
    Friend WithEvents Fax As CGTextBox
    Friend WithEvents Emaillbl As System.Windows.Forms.Label
    Friend WithEvents Email As CGTextBox
    Friend WithEvents InformCompanyFlaglbl As System.Windows.Forms.Label
    Friend WithEvents InformCompanyFlag As CGCheckBox
    Friend WithEvents Address1lbl As System.Windows.Forms.Label
    Friend WithEvents Address1 As CGTextBox
    Friend WithEvents Address2lbl As System.Windows.Forms.Label
    Friend WithEvents Address2 As CGTextBox
    Friend WithEvents Address3lbl As System.Windows.Forms.Label
    Friend WithEvents Address3 As CGTextBox
    Friend WithEvents Address4lbl As System.Windows.Forms.Label
    Friend WithEvents Address4 As CGTextBox


#End Region

#Region "Properties"

#End Region

#Region "Methods"

    Public Property IdNumberOnLoad As String

    ''' <summary>
    ''' Fills the controls on the screen from data in the object
    ''' </summary>
    ''' <remarks></remarks>
    Public Sub _loadData() Handles Me.evLoadObjectData

        Dim mo As Student = DirectCast(Me.ModelObject(), Student)
        Me.FirstName.value = mo.FirstName
        Me.LastName.value = mo.LastName
        Me.DateOfBirth.value = mo.DateOfBirth
        Me.Company.Value = mo.Company
        Me.IdNumber.value = mo.IdNumber

        Me.OfficePhone.value = mo.OfficePhone
        Me.MobilePhone.value = mo.MobilePhone
        Me.Fax.value = mo.Fax
        Me.Email.value = mo.Email
        Me.InformCompanyFlag.value = mo.InformCompanyFlag

        Me.Address1.value = mo.Address1
        Me.Address2.value = mo.Address2
        Me.Address3.value = mo.Address3
        Me.Address4.value = mo.Address4

        Me.IdNumber.isMandatory = mo.isNew

        If mo.isNew = False Then
            Me.IdNumberOnLoad = mo.IdNumber
        End If

    End Sub
    ''' <summary>
    ''' Loads the object from the database and then sets the proeperties 
    ''' of the object from values on the controls
    ''' </summary>
    ''' <remarks></remarks>
    Public Sub _loadToObject() Handles Me.evLoadToObject

        Dim mo As Student = DirectCast(Me.ModelObject, Student)
        mo.setFirstName(Me.FirstName.Text)
        mo.setLastName(Me.LastName.Text)
        mo.setDateOfBirth(Me.DateOfBirth.Text)

        If Me.Company.SelectedValue IsNot Nothing AndAlso String.IsNullOrEmpty(CStr(Me.Company.SelectedValue)) = False Then

            mo.setCompany(CStr(Me.Company.SelectedValue))
        Else
            mo.Company = Nothing
        End If

        mo.setIdNumber(Me.IdNumber.Text)

        mo.setOfficePhone(Me.OfficePhone.Text)
        mo.setMobilePhone(Me.MobilePhone.Text)
        mo.setFax(Me.Fax.Text)
        mo.setEmail(Me.Email.Text)
        mo.setInformCompanyFlag(Me.InformCompanyFlag.Text)
        mo.setAddress1(Me.Address1.Text)
        mo.setAddress2(Me.Address2.Text)
        mo.setAddress3(Me.Address3.Text)
        mo.setAddress4(Me.Address4.Text)

    End Sub


	Public Sub _InitializeControl() Handles Me.InitializeControl

		If Me.isInitialized = False Then
			'setup datasources here
            Dim sql = <sql>
select company,companyName from (
	select distinct company,company as companyName from student where isnull(company,'')&lt;&gt;'' 
	union
	select distinct '','-- NONE -- ' as companyName 
	union
	select distinct '','-- ADD NEW -- ' as companyName 
) a
order by companyName
                      </sql>
            Dim dt As DataTable = DBUtils.Current.getDataTable(sql.Value)

            Me.Company.DataSource = dt
            'Me.Company.AutoCompleteCustomSource.AddRange( _
            '                 (From row In dt Select CStr(row.Item(0))).ToArray)

            Me.Company.ValueMember = "company"
            Me.Company.DisplayMember = "companyName"

            Me.isInitialized = True
        End If

    End Sub

#End Region


    Private Sub ucStudentDetails_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Me.DesignMode Then Exit Sub


        Dim dt1 As DataTable = DBUtils.Current.getDataTable("select distinct Address3 from student where isnull(Address3,'')<>'' order by 1")
        Me.Address3.AutoCompleteMode = AutoCompleteMode.SuggestAppend
        Me.Address3.AutoCompleteSource = AutoCompleteSource.CustomSource
        Me.Address3.AutoCompleteCustomSource.AddRange( _
                         (From row In dt1 Select CStr(row.Item(0))).ToArray)

        Dim dt4 As DataTable = DBUtils.Current.getDataTable("select distinct Address4 from student where isnull(Address4,'')<>'' order by 1")
        Me.Address4.AutoCompleteMode = AutoCompleteMode.SuggestAppend
        Me.Address4.AutoCompleteSource = AutoCompleteSource.CustomSource
        Me.Address4.AutoCompleteCustomSource.AddRange( _
                         (From row In dt4 Select CStr(row.Item(0))).ToArray)

    End Sub

    Private Sub IdNumber_LostFocus(sender As Object, e As System.EventArgs) Handles IdNumber.LostFocus

        'validate so that the IDNumber does not exist
        Dim stud As Student = DirectCast(Me.ModelObject.copy, Student)

        If stud.IdNumber <> Me.IdNumber.Text Then
            stud.IdNumber = Me.IdNumber.Text
            Dim x2 As New StudentIdValidator
            If (x2.checkValidIdNumber(stud) = False) Then
                winUtils.MsgboxInfo(String.Format("Id Number {0} is not valid. Valid Id Numbers must consist of maximum 2 letters and numbers.", stud.IdNumber))
                Exit Sub
            End If

            Dim x As New StudentUniqueIdValidator

            If x.idNumberAlreadyExists(stud) Then
                winUtils.MsgboxInfo("Error: Another student exists with the same ID Number.")
                Exit Sub
            End If

        End If


    End Sub
End Class


